Skip to main content

Delete Tool Action

Used to delete a specific action from a tool. This permanently removes the action and its configuration from the tool.

API Endpoint

PropertyValue
Request MethodDELETE
Request URLhttps://api.seliseblocks.com/tools/{tool_id}/action/{action_id}

Request

Request Example

curl -X DELETE 'https://api.seliseblocks.com/tools/{tool_id}/action/{action_id}?project_key=YOUR_PROJECT_KEY' \
-H 'accept: application/json'

Path Parameters

FieldTypeRequiredDescription
tool_idstringYesThe unique identifier of the tool.
action_idstringYesThe unique identifier of the action to delete.

Query Parameters

FieldTypeRequiredDescription
project_keystringNoThe project key for your project.

Request Headers

FieldTypeRequiredDescription
acceptstringYesAccepted response format. Use application/json
warning

Action Deletion Warning

  • This operation permanently deletes the action and cannot be undone
  • All action configuration including parameters and settings will be removed
  • AI agents using this specific action will no longer be able to execute it
  • Any workflows or automations relying on this action may fail
  • Action execution history is retained for audit purposes
tip

Before deleting an action:

  • Verify which AI agents are using this action
  • Check for dependencies in workflows or automations
  • Export or backup action configuration if needed
  • Consider disabling the action instead of deleting it
  • Notify team members who may be using the action
  • Update documentation to reflect the removal

After successful deletion:

  • Remove references to the action from AI agent prompts
  • Update any workflows that depend on this action
  • Test affected agents to ensure they work without the action
  • Document the deletion for audit purposes

Response

Success Response (200 OK)

Returns an object containing the deletion status.

{
"is_success": true,
"item_id": "action_123",
"detail": "Action deleted successfully from tool",
"error": {}
}

Response Fields

FieldTypeDescription
is_successbooleanIndicates whether the deletion was successful.
item_idstringThe identifier of the deleted action.
detailstringSuccess or failure message with additional context.
errorobjectError details if the operation failed (empty if successful).

Error Response (422 Unprocessable Entity)

Returns validation error details when the request parameters are invalid.

{
"detail": [
{
"loc": [
"path",
"action_id"
],
"msg": "action not found in tool",
"type": "value_error.notfound"
}
]
}

Error Response Fields

FieldTypeDescription
detailarrayArray of validation error objects.
locarrayLocation of the error in the request (e.g., path, query).
msgstringHuman-readable error message.
typestringError type identifier.

Common Error Scenarios

Error TypeDescriptionResolution
Action Not FoundAction ID doesn't exist in the toolVerify the action_id is correct and belongs to the tool
Tool Not FoundTool ID doesn't existVerify the tool_id is correct
Permission DeniedUser lacks permission to delete actionsCheck user permissions in project settings
Action In UseAction is currently being executedWait for active executions to complete
Last ActionCannot delete the only action in a toolAdd another action before deleting this one

Error Codes

Status CodeDescriptionResponse Type
200Successful ResponseSuccess
400Bad Request - Invalid requestBad Request
403Forbidden - Insufficient permissionsForbidden
404Not Found - Tool or action does not existNot Found
409Conflict - Action is in use or is the last actionConflict
422Validation Error - Invalid request parametersUnprocessable Entity